/*
 * Configuracion.h
 *
 *  Created on: 30/10/2011
 *      Author: diego
 */

using namespace std;
#include <stdlib.h>
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>

#ifndef CONFIGURACION_H_
#define CONFIGURACION_H_

class Configuracion {
private:
	static Configuracion* cnf;
	ifstream* conf;

	int var_max_mem_indexador;
	string var_path_indice;
	int var_front_coding;
	string var_path_documentos;
	string var_path_stopwords;
	string var_host_addr;
	int var_port_number;

	void procesarParametro(string atributo, string valor);
	int str2int(string str);
	Configuracion(string path_conf);

public:
	static Configuracion* getConf(string path_conf);
	static void deleteConf();
	int max_mem_indexdor();
	string path_indice();
	int front_coding();
	string path_documentos();
	string path_stopwords();
	string host_addr();
	int port_number();
	virtual ~Configuracion();
};

#endif /* CONFIGURACION_H_ */
